package com.sh.data.engine.application.model.dto.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author binghe.yxh
 */
@Data
@Schema
public class OfflineSyncTablesResponse {

    @Schema(description = "0-表 1-视图")
    private TblType tblType;

    @Schema(description = "表名或者视图名")
    private String tableName;

    @Schema(description = "schema")
    private String schema;

    @Schema(description = "是否分区")
    private Boolean isPartition;

    @Schema(description = "表中文名")
    private String detailedTblName;


    public enum TblType {
        /**
         * 内表
         */
        MANAGED_TABLE,
        /**
         * 外表
         */
        EXTERNAL_TABLE,
        /**
         * 视图
         */
        VIEW
    }
}
